@ var head={
<title>考试科目</title>

<style>
.datagrid-header-rownumber, .datagrid-cell-rownumber {
	width: 40px;
}
</style>
@}; var ctrls= "ng-controller='KaoshikemuCtrls'" ; var body ={

<div class="easyui-layout" data-options="fit : true,border : false">

	@if( so.hasPermission("/business/xuesheng/add")) {
	<div ng-model="so_add" ng-init="so_add=true"></div>
	@}if( so.hasPermission("/business/xuesheng/edit")) {
	<div ng-model="so_eidt" ng-init="so_edit=true"></div>
	@}if( so.hasPermission("/business/xuesheng/delete")) {
	<div ng-model="so_delete" ng-init="so_delete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/batchDelete")) {
	<div ng-model="so_batchDelete" ng-init="so_batchDelete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/export")) {
	<div ng-model="so_export" ng-init="so_export=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_importExcel" ng-init="so_importExcel=true"></div>
	@}

	<div data-options="region:'center',border:false">
		<table id="dataGrid"></table>
	</div>

	<div id="toolbar" style="display: none;">
		<a ng-show="so_add" ng-click="addFun()" href="javascript:void(0);"
			class="easyui-linkbutton" data-options="plain:true,iconCls:'bug_add'">添加</a>
		<a ng-show="so_export" ng-click="exportFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">导出</a> <a
			ng-show="so_importExcel" ng-click="importExcelFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">导入</a>

	</div>

	<div id="menu" class="easyui-menu" style="width: 120px; display: none;">

		<div ng-show="so_add" ng-click="addFun();"
			data-options="iconCls:'pencil_add'">增加</div>
		<div ng-show="so_delete" ng-click="deleteFun();"
			data-options="iconCls:'pencil_delete'">删除</div>
		<div ng-show="so_edit" ng-click="editFun();"
			data-options="iconCls:'pencil'">编辑</div>
	</div>
	<!--  dialog -->
	<div id="dlg" class="easyui-dialog"
		style="width: 580px; height: 250px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm" method="post">
					<input name="id" type="hidden">
					<table class="table table-hover table-condensed">
						<tr>
							<th>代码：</th>
							<td><input id="kmDm" name="kmDm" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>名称:</th>
							<td><input name="kmMc" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>

						</tr>
					</table>
				</form>
				<hr/>
			<ul>
			<li>1:如有录错代码，请删除后再录入</li>
			</ul>
			</div>
		</div>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submit()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg').dialog('close')">取消</a>
	</div>
	<div id="dlg2" class="easyui-dialog"
		style="width: 550px; height: 250px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons2" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm2" method="post" enctype="multipart/form-data">
					<input type="file" name="file" id="file" />
					<hr />
					<ul>
						<li>1:整个excel的单元格式必须为文本模式</li>
						<li>2:点击上传时，如果提示存在错误数据，则整个操作已失败，请按照提示更正数据后再上传</li>
					</ul>
				</form>
			</div>
		</div>
	</div>
	<div id="dlg-buttons2">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submitImportExcel()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg2').dialog('close')">取消</a>
	</div>
	<div id="w" class="easyui-window" title="错误数据"
		data-options="modal:true,closed:true,iconCls:'icon-save'"
		style="width: 600px; height: 450px; padding: 10px;">
		<div id="ErrorContent"></div>
		<div ng-init="load()"></div>

	</div>
	@};var js={
	<script type="text/javascript">
var  formatterFun=function(value, row, index) {
		var str = '';
		
		@if( so.hasPermission("/business/xuesheng/edit")) 
			str += $.formatString('<img ng-show="so_edit" onclick="$(this).scope().editFun(\'{0}\')"  src="{1}" title="编辑"/> ', row.kmDm, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_edit.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/delete")) 
			str += $.formatString('<img ng-show="so_delete" onclick="$(this).scope().deleteFun(\'{0}\');" src="{1}" title="删除"/>', row.kmDm, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_delete.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/status")) 
			str += $.formatString('<img ng-show="so_status" onclick="$(this).scope().statusFun(\'{0}\',1);" src="{1}" title="修改状态"/>', row.kmDm, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_go.png');
		@
			return str;
}
</script>
	<script type="text/javascript"
		src="${CONTEXT_PATH}/static/js/ajaxfileupload.js" charset="utf-8"></script>
	<script src="${CONTEXT_PATH}/static/app/ctrls/kaoshikemu-ctrls.js"
		type="text/javascript"></script>
@};include("../layout/_layout.html",{head:head,body:body,js:js,ctrls:ctrls}){}
